package com.magus.project.yddemo.entity;

import javax.persistence.Column;
import javax.persistence.ConstraintMode;
import javax.persistence.Entity;
import javax.persistence.ForeignKey;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.magus.framework.core.entity.BaseEntity;
import com.magus.framework.system.entity.Company;
import com.magus.sis.common.entity.ComUnit;

/**
 * 指标详细
 * 
 * @author Zhang JiaWei
 * @date 2018-01-18 15:14
 */
@Entity
@Table(name = "YDDEMO_INDICATOR_DETAIL")
public class IndicatorDetail extends BaseEntity {

	/**   */
	private static final long serialVersionUID = 1L;

	@ManyToOne
	@JoinColumn(name = "INDICATOR_ID_", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
	private Indicator indicator;

	@ManyToOne
	@JoinColumn(name = "COMPANYR_ID_", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
	private Company company;

	@ManyToOne
	@JoinColumn(name = "COMUNIT_ID_", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
	private ComUnit comUnit;

	@ManyToOne
	@JoinColumn(name = "PACKAGE_ID_", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
	private IndicatorPackage indicatorPackage;

	@Column(name = "DIMENSION_", length = 20)
	private String dimension;

	/**
	 * @return the indicator
	 */
	public Indicator getIndicator() {
		return indicator;
	}

	/**
	 * @param indicator
	 *            the indicator to set
	 */
	public void setIndicator(Indicator indicator) {
		this.indicator = indicator;
	}

	/**
	 * @return the company
	 */
	public Company getCompany() {
		return company;
	}

	/**
	 * @param company
	 *            the company to set
	 */
	public void setCompany(Company company) {
		this.company = company;
	}

	/**
	 * @return the comUnit
	 */
	public ComUnit getComUnit() {
		return comUnit;
	}

	/**
	 * @param comUnit
	 *            the comUnit to set
	 */
	public void setComUnit(ComUnit comUnit) {
		this.comUnit = comUnit;
	}

	/**
	 * @return the indicatorPackage
	 */
	public IndicatorPackage getIndicatorPackage() {
		return indicatorPackage;
	}

	/**
	 * @param indicatorPackage
	 *            the indicatorPackage to set
	 */
	public void setIndicatorPackage(IndicatorPackage indicatorPackage) {
		this.indicatorPackage = indicatorPackage;
	}

	public String getDimension() {
		return dimension;
	}

	public void setDimension(String dimension) {
		this.dimension = dimension;
	}

}
